package com.ruoyi.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.employee.mapper.HrEmployeeContractMapper;
import com.ruoyi.employee.domain.HrEmployeeContract;
import com.ruoyi.employee.service.IHrEmployeeContractService;

/**
 * 员工合同Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrEmployeeContractServiceImpl implements IHrEmployeeContractService 
{
    @Autowired
    private HrEmployeeContractMapper hrEmployeeContractMapper;

    /**
     * 查询员工合同
     * 
     * @param id 员工合同主键
     * @return 员工合同
     */
    @Override
    public HrEmployeeContract selectHrEmployeeContractById(Long id)
    {
        return hrEmployeeContractMapper.selectHrEmployeeContractById(id);
    }

    /**
     * 查询员工合同列表
     * 
     * @param hrEmployeeContract 员工合同
     * @return 员工合同
     */
    @Override
    public List<HrEmployeeContract> selectHrEmployeeContractList(HrEmployeeContract hrEmployeeContract)
    {
        return hrEmployeeContractMapper.selectHrEmployeeContractList(hrEmployeeContract);
    }

    /**
     * 新增员工合同
     * 
     * @param hrEmployeeContract 员工合同
     * @return 结果
     */
    @Override
    public int insertHrEmployeeContract(HrEmployeeContract hrEmployeeContract)
    {
        return hrEmployeeContractMapper.insertHrEmployeeContract(hrEmployeeContract);
    }

    /**
     * 修改员工合同
     * 
     * @param hrEmployeeContract 员工合同
     * @return 结果
     */
    @Override
    public int updateHrEmployeeContract(HrEmployeeContract hrEmployeeContract)
    {
        return hrEmployeeContractMapper.updateHrEmployeeContract(hrEmployeeContract);
    }

    /**
     * 批量删除员工合同
     * 
     * @param ids 需要删除的员工合同主键
     * @return 结果
     */
    @Override
    public int deleteHrEmployeeContractByIds(Long[] ids)
    {
        return hrEmployeeContractMapper.deleteHrEmployeeContractByIds(ids);
    }

    /**
     * 删除员工合同信息
     * 
     * @param id 员工合同主键
     * @return 结果
     */
    @Override
    public int deleteHrEmployeeContractById(Long id)
    {
        return hrEmployeeContractMapper.deleteHrEmployeeContractById(id);
    }
}
